package com.sky.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class OrdersPageQueryDTO implements Serializable {

    @ApiModelProperty("当前页")
    private int page;

    @ApiModelProperty("每页记录数")
    private int pageSize;

    private String number;

    private  String phone;

    @ApiModelProperty("订单状态 1待付款，2待接单，3已接单，4派送中，5已完成，6已取消")
    private Integer status;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime beginTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @ApiModelProperty("用户id")
    private Long userId;

}
